package com.ltg.framework.auth.access;

import java.util.ArrayList;
import java.util.List;

/**
 * @Version 1.0
 * @Author LTG
 * @ClassName UrlAllow
 * @Date 2023/11/17 17:09
 */
public final class UrlAllow {
    private static final List<String> urlAllowList = new ArrayList<>();

    private UrlAllow() {
    }

    public static List<String> getUrlAllowList() {
        return urlAllowList;
    }

    static {
        urlAllowList.add("/");
        urlAllowList.add("/health");
        urlAllowList.add("/favicon.ico");
        urlAllowList.add("/swagger-ui.html");
        urlAllowList.add("/doc.html");
        urlAllowList.add("/webjars/**");
        urlAllowList.add("/v2/api-docs");
        urlAllowList.add("/v3/api-docs");
        urlAllowList.add("/v3/api-docs/swagger-config");
        urlAllowList.add("/swagger-resources");
        urlAllowList.add("/swagger-resources/**");
        urlAllowList.add("/*.html");
        urlAllowList.add("/assets/*.js");
        urlAllowList.add("/assets/*.css");
    }
}
